package com.imufe.chemicalenterprisedangerwarning.entity.query;

import com.imufe.chemicalenterprisedangerwarning.annotation.ExistId;
import com.imufe.chemicalenterprisedangerwarning.mapper.EnterpriseMapper;
import com.imufe.chemicalenterprisedangerwarning.mapper.InspectionMethodMapper;
import com.imufe.chemicalenterprisedangerwarning.mapper.UserMapper;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @author BaiBan
 * @since 2022/10/12
 */

@ApiModel(value = "检查表请求")
@Data
public class CheckQuery {

    @ApiModelProperty("企业编号")
    @ExistId(message = "企业不存在，请选择正确的企业", value = EnterpriseMapper.class)
    private Long enterpriseId;

    @ApiModelProperty(value = "检查形式编号")
    @ExistId(message = "检查形式不存在，请选择正确的检查形式", value = InspectionMethodMapper.class)
    private Byte inspectionMethodId;
}
